class Category < ActiveRecord::Base
	has_and_belongs_to_many :blogs

	scope :sorted, lambda {order("created_at desc")}

	def is_member_of?(category)
		self.include? category
	end
end
